package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50);not null;"`
	Password string `gorm:"type:varchar(32);not null;"`
}

type Area struct {
	gorm.Model
	UserId int    `gorm:"type:int(10);not null;"`
	Name   string `gorm:"type:varchar(30);"`
	Sex    string `gorm:"type:enum('男','女');"`
	Img    string `gorm:"type:varchar(300);"`
	Tel    string `gorm:"type:varchar(30);"`
}
